<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 27/9/2017
 * Time: 上午 10:35
 */

namespace app\common\validate;


use think\Validate;

class BisAccount extends Validate
{
    protected $rule=[
        'id'=> 'number',
        'username'=> 'require|min:6',
        'password'=> 'require|min:6',
        'bis_id'=> 'number',
        'is_main'=> 'number|in:0,1',
        'listorder'=> 'number',
        'status'=> 'number|in:-1,0,1,2',

    ];
    protected $scene=[
        'add'=>['username','password'],
        'status'=>['bis_id','status'],
        'login' =>['username','password'],
    ];
}